package ejerciciosJFrame1819;

import java.awt.Graphics;

public class Cuadrado implements Figura {

	private int x;
	private int y;
	private int ancho;

	public Cuadrado(int x, int y) {
		this.x=x;
		this.y=y;
		this.ancho=50;
	}

	@Override
	public void dibujar(Graphics g) {
		g.drawRect(x, y, ancho, ancho);
	}

}
